<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="../00_static/js/vue.js" type="text/javascript"></script>
    <title>初识vue</title>
</head>

<body>
    <div id="app">
        <h2>我的名字是：{{ name }}</h2>
        <h2>我的性别是：{{ sex }}</h2>
        <h2>我喜欢的颜色是：{{ color }}</h2>
        <br>
        <h3>我的学校信息-名字：{{ school.name }}</h3>
        <h3>我的学校信息-地址：{{ school.address }}</h3>
    </div>

    <script type="text/javascript">
        var app = new Vue({
            el: "#app",
            data: {
                name: '张三',
                sex: '男',
                color: '白色',
                school: {
                    name: 'xxxx学校',
                    address: 'xxxx地址'
                }
            }
        });
    </script>
</body>

</html>